watchdog: Move watchdog from being x86 specific to common code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Aug 2013 12:29:00 +0000 (14:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Aug 2013 12:29:00 +0000 (14:29 +0200)
commitc8177e691f0f611240853326712d43482ec949bf
treec2063ee306f0c6a9c0927b2e3b114fe053193878
parent910daaf5aaa837624099c0fc5c373bea7202ff43
watchdog: Move watchdog from being x86 specific to common code

Augment watchdog_setup() to be able to possibly return an error, and introduce
watchdog_enabled() as a better alternative to knowing the architectures
internal details.

This patch does not change the x86 implementaion, beyond making it compile.

For header files, some includes of xen/nmi.h were only for the watchdog
functions, so are replaced rather than adding an extra include of
xen/watchdog.h

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
12 files changed:
xen/arch/x86/nmi.c
xen/arch/x86/setup.c
xen/arch/x86/shutdown.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/traps.c
xen/common/kexec.c
xen/common/keyhandler.c
xen/common/shutdown.c
xen/drivers/char/console.c
xen/include/asm-x86/config.h
xen/include/asm-x86/nmi.h
xen/include/xen/watchdog.h [new file with mode: 0644]